package com.ruoyi.project.supplier.accounts.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 第三方系统对接对象 sup_accounts
 * 
 * @author lindor
 * @date 2020-04-07
 */
public class SupAccounts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long supId;

    /** 供应商编码 */
    @Excel(name = "供应商编码")
    private String supCode;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supName;

    /** 数据库地址 */
    @Excel(name = "数据库地址")
    private String jdbcUrl;

    /** 数据库用户名 */
    @Excel(name = "数据库用户名")
    private String jdbcUsername;

    /** 数据库密码 */
    @Excel(name = "数据库密码")
    private String jdbcPassowrd;

    /** 数据库驱动 */
    @Excel(name = "数据库驱动")
    private String jdbcDriver;

    /** 最新同步时间 */
    @Excel(name = "最新同步时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastSynTime;

    /** 供应商状态（0正常 1停用） */
    @Excel(name = "供应商状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setSupId(Long supId) 
    {
        this.supId = supId;
    }

    public Long getSupId() 
    {
        return supId;
    }
    public void setSupCode(String supCode) 
    {
        this.supCode = supCode;
    }

    public String getSupCode() 
    {
        return supCode;
    }
    public void setSupName(String supName) 
    {
        this.supName = supName;
    }

    public String getSupName() 
    {
        return supName;
    }
    public void setJdbcUrl(String jdbcUrl) 
    {
        this.jdbcUrl = jdbcUrl;
    }

    public String getJdbcUrl() 
    {
        return jdbcUrl;
    }
    public void setJdbcUsername(String jdbcUsername) 
    {
        this.jdbcUsername = jdbcUsername;
    }

    public String getJdbcUsername() 
    {
        return jdbcUsername;
    }
    public void setJdbcPassowrd(String jdbcPassowrd) 
    {
        this.jdbcPassowrd = jdbcPassowrd;
    }

    public String getJdbcPassowrd() 
    {
        return jdbcPassowrd;
    }
    public void setJdbcDriver(String jdbcDriver) 
    {
        this.jdbcDriver = jdbcDriver;
    }

    public String getJdbcDriver() 
    {
        return jdbcDriver;
    }
    public void setLastSynTime(Date lastSynTime) 
    {
        this.lastSynTime = lastSynTime;
    }

    public Date getLastSynTime() 
    {
        return lastSynTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("supId", getSupId())
            .append("supCode", getSupCode())
            .append("supName", getSupName())
            .append("jdbcUrl", getJdbcUrl())
            .append("jdbcUsername", getJdbcUsername())
            .append("jdbcPassowrd", getJdbcPassowrd())
            .append("jdbcDriver", getJdbcDriver())
            .append("lastSynTime", getLastSynTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
